Avoid an X error
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jan 2016 18:48:10 +0000 (13:48 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jan 2016 18:50:46 +0000 (13:50 -0500)
commitb94f30bb64bd84ad62b4451c88aeca1f06a1959a
tree12b61485b9de8bb20ede1813b1b5f64280f69bcf
parent4d60b5b10c472fb3b37465cede661288708e16e6
Avoid an X error

We are getting the mime data destroy notify called when we
destroy the surface in finalize. Trying to set the XSync counters
at this time is a) pointless and b) yielding an X error because
the counters have already been destroyed.
To avoid this, unhook the damage tracking before destroying
the surface.

https://bugzilla.gnome.org/show_bug.cgi?id=760188
gdk/x11/gdkwindow-x11.c